function chooseMedicalAdvice() {
    var doctor = document.getElementById("doctor").value;
    var customerPhone = document.getElementById("customerPhone").value;
    if (doctor == null || doctor == "") {
        alert("请选择医生！");
        return
    }
    if (confirm("是否发送医嘱?")) {
        $.ajax({
            url: Feng.ctxPath + "/msgSend/sendMedicalAdvice",
            type: "post",
            data: {
                "medicalAdviceUnit": $('input[name="medicalAdviceUnit"]:checked').val(),
                "doctor": doctor,
                "customerPhone": customerPhone
            },
            success: function (data) {
                Feng.success('发送操作成功!');
                parent.layer.close(parent.layer.getFrameIndex(window.name))
            },
            error: function (data) {
                alert('没有权限，请联系系统管理员!');
                parent.layer.close(parent.layer.getFrameIndex(window.name))
            }
        })
    }
}